﻿using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Windows.Forms;

namespace HogoTools.Annotate
{
	public class AnnotateDialog : Component
	{
		public DialogResult ShowDialog(string annotateResult)
		{
			string tempFileName = Path.GetTempFileName();
			StreamWriter writer = new StreamWriter(tempFileName, false, Encoding.Default);
			writer.WriteLine(annotateResult);
			writer.Close();
			Process.Start("notepad.exe", tempFileName);
			return DialogResult.OK;
		}
	}
}
